package cn.edu.cug.cs.gtl.plugins.redner4oi.nodes;

import cn.edu.cug.cs.gtl.apis.render.nodes.Separator;
import com.openinventor.inventor.nodes.SoSeparator;

public class SeparatorImpl extends GroupImpl implements Separator {

    public SeparatorImpl() {
        super();
        this.nativeObject = new SoSeparator();
    }
    public SeparatorImpl(SoSeparator s) {
        super();
        this.nativeObject = s;
    }

    @Override
    public boolean attach(Object nativeObject) {
        if(nativeObject instanceof SoSeparator)
            this.nativeObject = (SoSeparator)nativeObject;
        else
            return false;

        return true;
    }

}
